package com.four.treatment.fegin;

import com.four.common.utils.R;
import com.four.common.vo.DoctorVo;
import com.four.common.vo.UserTo;
import com.four.common.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author:wsy
 * @Date: 2022/01/23/14:15
 * @Description
 */
@FeignClient("four-hospital")
public interface HospitalFeginService {

    /**
     * 根据手机号查询用户信息
     * @param userPhone
     * @return
     */
    @GetMapping("/hospital/user/findByuserPhone/{userPhone}")
    public UserVo findByUserPhone(@PathVariable("userPhone") String userPhone);

    /**
     * 根据医生编号查询
     * @param docId
     * @return
     */
    @GetMapping("/hospital/doctor/findById/{docId}")
    DoctorVo findByDocId(@PathVariable("docId") Integer docId);
}
